package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import com.atguigu.jxc.entity.ReturnList;
import com.atguigu.jxc.entity.ReturnListGoods;
import com.atguigu.jxc.to.PurchaseTo;
import com.atguigu.jxc.to.ReturnCountTo;
import com.atguigu.jxc.to.ReturnTo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName:PurchaseListDao
 * @Version: 1.0
 * @CreateAt:2021/3/8 10:43
 * @Author: ✨HanSan·胡✨
 * @Description:
 */
@Mapper
public interface ReturnListDao {

    void save(ReturnList returnList);

    void saveReturnListGoods(@Param("list") List<ReturnListGoods> list);

    List<Map> listByPage(ReturnTo returnTo);

    List<ReturnListGoods> goodsList(Integer returnListId);

    void deleteByReturnListGoods(Integer returnListId);

    void deleteByReturnList(Integer returnListId);

    void updateState(Integer returnListId);

    List<Map> count(ReturnCountTo returnCountTo);
}
